#!/usr/bin/env python
# encoding: utf-8
# @author: LANG

'''
fixture仓库
'''
import time

import pytest

from common.bo import CHROME
from common.global_logger import logger
from settings import LOGIN_URL


@pytest.fixture(scope="session")
def web_browser():
    logger.info("------------启动浏览器-----------------")
    driver = CHROME().browser
    logger.info("------------打开浏览器-----------------")
    driver.get(LOGIN_URL)
    yield driver
    time.sleep(3)
    logger.info("------------关闭所有浏览器-----------------")
    driver.quit()


